//
//  GooOcr.h
//  iOcr
//
//  Created by Matri Ning on 1/18/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ServiceProtocol.h"
#import "GDataServiceGoogle.h"
#import "GDataEntryDocBase.h"
#import "GDataFeedDocList.h";

@class FunOCRAppDelegate;

@interface GooOcr : NSObject {
	id<ServiceProtocol> delegate;
	
	
	GDataServiceTicket *mUploadTicket;
	
	GDataFeedDocList *mDocListFeed;
	
	GDataServiceTicket *mDocListFetchTicket;
	
	UIImage *uploadImage;
	GDataEntryDocBase *ocrEntry;
	
	FunOCRAppDelegate *appDelegate;
}

@property (nonatomic, assign) id<ServiceProtocol> delegate;


@property (nonatomic, retain) GDataFeedDocList *mDocListFeed;
@property (nonatomic, retain) UIImage *uploadImage;
@property (nonatomic, retain) GDataEntryDocBase *ocrEntry;


- (id) init;
-(void)uploadImage:(UIImage *)imageFile AndName: (NSString *)docName;
- (void)uploadFileTicket:(GDataServiceTicket *)ticket finishedWithEntry:(GDataEntryDocBase *)entry error:(NSError *)error;
- (void)setUploadTicket:(GDataServiceTicket *)ticket;
//- (void)fetchDocList: (UIImage *)image;
//- (void)setDocListFetchTicket:(GDataServiceTicket *)ticket;
@end

